package com.translate.web.param;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import com.translate.web.constant.ValidateCondtionAndMessage;
import com.translate.web.param.contract.ITeamAddParam;

public class TeamAddParam implements ITeamAddParam {// 团队名称
	@NotNull
//	@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION, 
//	message = "请输入只含有数字下划线英文正常符号的团队名称")
	private String groupName;
	// 团长
	@NotNull
//	@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION, 
//	message = "请输入只含有数字下划线英文正常符号的团长名称")
	private String regimental;
	// 团长id
	
	private int userId;
	// 邮箱
	@NotNull
	@Pattern(regexp = ValidateCondtionAndMessage.EMAIL_PATTERN, message = ValidateCondtionAndMessage.EMAIL_PATTERN_MSG)
	private String email;
	// 手机号
	@NotNull
	@Pattern(regexp = ValidateCondtionAndMessage.PHONE_BY_PATTERN, message = ValidateCondtionAndMessage.PHONE_BY_PATTERN_MSG)
	private String phone;

	// 状态 0 待审核 1 通过 2 拒绝
	@NotNull
	@Min(value = ValidateCondtionAndMessage.MIN_STATUS, message = ValidateCondtionAndMessage.MIN_STATUS_MSG)
	@Max(value = 2, message = "审核状态最大为2")
	private Byte status = 0;

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName == null ? null : groupName.trim();
	}

	public String getRegimental() {
		return regimental;
	}

	public void setRegimental(String regimental) {
		this.regimental = regimental == null ? null : regimental.trim();
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email == null ? null : email.trim();
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone == null ? null : phone.trim();
	}


	public Byte getStatus() {
		return status;
	}

	public void setStatus(Byte status) {
		this.status = status;
	}


}